<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><g:layoutTitle default="Grails" /></title>

    <link rel="stylesheet" href="${resource(dir:'css',file:'default.css')}" />
    <link rel="stylesheet" href="${resource(dir:'css',file:'layout.css')}" />
    <link rel="stylesheet" href="${resource(dir:'css',file:'formularios.css')}" />
    <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
    <link rel="stylesheet" href="${resource(dir:'css',file:'impressora.css')}" />
    <link rel="stylesheet" href="${resource(dir:'css',file:'menuQueryCorner.css')}" />
    <link rel="shortcut icon" href="${resource(dir:'images',file:'favicon.ico')}" type="image/x-icon" />
  <g:javascript library="prototype/prototype" />
  <g:javascript library="prototype/effects" />
  

  <g:layoutHead />

  <g:javascript library='application' />


</head>
<body>

  <div id="ALL">

    <div id="Banner">
          <div class='header'>

            <div class='loginForm'>
                <wa:ifUsuario>
                    <g:form action="logout" method="post">
                        <p class="login">
                            Seja bem vindo! <span class='user'><wa:userLink/></span>&#160;&#160;&#160;
                            <span class="buttons"><input class="button userRed" type="submit" value="Sair"/></span>
                        </p>
                    </g:form>
                </wa:ifUsuario>
                <wa:ifUsuario not="true">
                    <g:form action="login" method="post">
                        <p class="login">
                            Login: <input type="text" size="10" maxlength="40" name="name"/>
                            Senha: <input type="password" name="password" size="10" maxlength="40"/>
                            <input type="hidden" name="url" value="${createLink(params)}"/>
                            <span class="buttons"><input class="button user" type="submit" value="Logar"/></span>
                        </p>
                    </g:form>
                </wa:ifUsuario>
                <g:if test="${flash.loginNotice}">
                    <p class='loginNotice'>${flash.loginNotice}</p>
                </g:if>
            </div>
        </div>
    </div>

    <div class='content'>

    </div>

    <div id="Container">
      <g:layoutBody />
    </div>

    <div id="Footer">
    </div>
  </div>

</body>
</html>

</html>
